<div class="modal" ng-controller="KisBpmChoseAssignmentCtrl">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;
                </button>
                <h2 translate>PROPERTY.ASSIGNMENT.TITLE</h2>
            </div>

            <div class="modal-body" style="height: 450px;">
                <div class="row row-no-gutter" style="padding: 0 20px 10px 20px">
                    <div class="btn-group btn-group-sm">
                        <!-- <button type="button" class="btn btn-default"
                                ng-click="queryByRole('oa_user')"> 全部
                        </button> -->
                      <!--  <button type="button" class="btn btn-default" ng-repeat="role in roles"
                                ng-click="queryByRole(role.id)"> {{role.name}}
                        </button> -->
                    </div>
                </div>
                <div class="row row-no-gutter" style="padding: 0 20px;height: 370px;overflow-x: auto">

                    <div class="input-group col-md-6 input-group-sm" style="padding: 10px 0 5px 0">
                        <input type="text" class="form-control" placeholder="请输入用户姓名或用户名" ng-model="keyword">
                        <span class="input-group-btn">
                            <button class="btn btn-default" type="button" ng-click="queryByKeyword()"><span class="glyphicon glyphicon-search"></span></button>
                        </span>
                    </div>

                    <table id="userTable" class="table table-bordered table-condensed table-hover table-striped">
                        <thead>
                        <tr class="active">
                            <th style="text-align: center;width: 100px">序号</th>
                            <th style="text-align: center;width: 200px">姓名</th>
                            <th style="text-align: center;width: 200px">用户名</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="account in accounts" style="text-align: center"
                            ng-class="account.checked==true||account.selected==true?'info':''"
                            ng-click="rowClick(account.id)">
                            <td ng-value="account.name">{{$index+1}}</td>
                            <td ng-value="account.name">{{account.name}}</td>
                            <td>{{account.code}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="modal-footer">
                <tm-pagination conf="paginationConf"></tm-pagination>
              <!--  <button ng-if="choseAssignmentFlag=='assignees'" type="button" class="btn btn-default"
                        ng-click="selectAll()">全选
                </button> -->
                <button ng-click="close()" translate class="btn btn-inverse">ACTION.CANCEL</button>
                <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
            </div>
        </div>
    </div>
</div>